using System;

namespace DynamicConfigurationManager.ConfigMapAttributes
{
    internal class Hostname : IConfigMapAttribute
    {
        public bool Execute( string configMapAttribute )
        {
            LogHelper.Append( "Hostname: matching to {0}", Environment.MachineName );
            return configMapAttribute.Equals( Environment.MachineName, StringComparison.InvariantCultureIgnoreCase );
        }
    }
}